class Solution:
    # @param {string[]} strs
    # @return {string[]}
    def anagrams(self, strs):
        from collections import Counter
        counter = collections.Counter([tuple(sorted(s)) for s in strs])
        return filter(lambda x : counter[tuple(sorted(x))] > 1, strs)
